import React, { PureComponent } from "react"
import { createPortal } from "react-dom"
import Modal from "./Modal"

export class App extends PureComponent {
    render() {
        return (
            <div>
                <h1>App h1</h1>
                {createPortal(<h2>111</h2>, document.querySelector("#app"))}
                <Modal>
                    <h1>Modal1</h1>
                    <h2>Modal2</h2>
                </Modal>
            </div>
        )
    }
}

export default App
